package chixing.day20.proxy.jdk_proxy;

public class ProxyTest {
    public static void main(String[] args) {
        //new 代理对象
        MyProxy myProxy = new MyProxy(new ProductServiceImpl());
        ProductService productService = (ProductService) myProxy.createProxy();
        //增强实现
        productService.delete(new Product());
    }
}
